//
//  LRImageView.swift
//  LRWeibo
//
//  Created by 雷路荣 on 15/12/31.
//  Copyright © 2015年 leilurong. All rights reserved.
//

import UIKit
//导入框架
import FLAnimatedImage

// 继承第三方框架的FLAnimatedImageView来显示gif图片
class LRImageView: FLAnimatedImageView {
    //覆盖父类方法
    override var transform: CGAffineTransform {
        didSet{
            //不让设置缩放比例比设置的小
            if transform.a < LRImageViewMinimumZoomScale  {
                print("transform.a = \(transform.a)")
               transform = CGAffineTransformMakeScale(LRImageViewMinimumZoomScale, LRImageViewMinimumZoomScale)
            }
        }
    }
}
